<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>
    <div id="canvas">
        {{msg}}:{{age}}
        <div v-text="msg"></div>
        <div v-html="html"></div>
        <div v-text="html"></div>
    </div>
</body>
<script>
    let vm = new Vue({
        //控制区域
        el: '#canvas',
        //存放数据
        data: {
            msg: "开始学习vue",
            age: 18,
            html: '<a href="#">学习vue</a>'
        },
        //存放方法
        method: {
        },
    })
</script>

</html>